
#CC := gcc
ARCH := G:/android/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/arm-linux-androideabi-
CXX := $(ARCH)g++
CC := $(ARCH)gcc
AR := $(ARCH)ar
LD := $(ARCH)ld

CFLAGS += -fPIC -pie -isystem "G:/android/android-ndk-r10d/platforms/android-21/arch-arm/usr/include"

LDFLAGS = -L"G:/android/android-ndk-r10d/platforms/android-21/arch-arm/usr/lib"\
	-L"G:/android/android-toolchain-arm/android-15/sysroot/lib"\
	-L"G:/android/android-toolchain-arm/android-15/sysroot/usr/lib"\
	--sysroot="G:/android/android-ndk-r10d/platforms/android-15/arch-arm"\
    -lm_hard \
    -L"G:/android/android-ndk-r10d/sources/cxx-stl/stlport/libs/armeabi-v7a/thumb"
	
LDFLAGS += -fPIC -pie


SRCS := sound/sound.c





core.so:$(SRCS:.c=.o)
	$(CC) $(LDFLAGS) -shared $(^) -o $(@) 

%.o:%.c
	$(CC) $(CFLAGS) -c $(<) -o $(@) 

clean:
	-rm $(SRCS:.c=.o)
